<?php if (isset($pager)): ?>
<div class="row-fluid">
    <div class="span12">
        <div class="box gradient">
            <div class="title">
                <h4>
                    <span>Danh sách các biến</span>
                </h4>
            </div>
            <div class="content noPad clearfix">
              <table cellpadding="0" cellspacing="0" border="0" class="responsive dynamicTable display table table-bordered" width="100%">
                <thead>
                  <tr>
                    <th>
                        <span>Loại biến</span>
                    </th>
                    <th>
                        <span>Min Pax - Max Pax</span>
                    </th>
                    <th>	
                        <span>Giá trị</span>
                    </th>
                    <th>
                        <span>Kích hoạt</span>
                    </th>
                    <th>
                      	<span>Thao Tác</span>
                    </th>
                  </tr>
				</thead>
				<tbody>
				  <?php foreach ($pager->getResults() as $rate): ?>
                    <tr>
                    	<td><?php echo $variable_names[$rate->variable_id] ?></td>
                        <td><?php echo $rate->min_pax ?> - <?php echo $rate->max_pax ?></td>
                        <td style='text-align:center;'><?php echo $rate->rate_value ?></td>
                        <td style='text-align:center;'><?php echo ($rate->is_active)?"<img src='/images/true.gif' />":"<img src='/images/false.gif' />"  ?></td>
                        <td style="text-align:center"><?php echo link_to('Sửa', '@rate_edit?rate_id='.$rate->rate_id)?></td>
                    </tr>
                  <?php endforeach ?>
    			</tbody>
  				</table>
        	</div>
    	</div>
	</div>
</div>
<?php endif ?>